<?php
	$shop_id = $_REQUEST['shop_id'];
	$name = $_REQUEST['name'];
	$title = $_REQUEST['title'];
	$address = $_REQUEST['address'];
	$area = $_REQUEST['area'];
	$telephone = $_REQUEST['telephone'];
	$email = $_REQUEST['email'];
	$latitude = $_REQUEST['latitude'];
	$longitude = $_REQUEST['longitude'];
	$createtime = $_REQUEST['createtime'];
	$description = $_REQUEST['description'];
	$details = $_REQUEST['details'];
	$image = $_REQUEST['image'];
	$favorite_count = $_REQUEST['favorite_count'];
	$tap_count = $_REQUEST['tap_count'];
	$lastedittime = $_REQUEST['lastedittime'];
?>
<html>
<head>
<script type="text/javascript"
	src="http://maps.google.com/maps/api/js?v=3.2&sensor=false">
</script>
<script>

//	var myLatlng= new google.maps.LatLng(23.129074,113.26442);//定位到广州
	var myLatlng= new google.maps.LatLng(<?php echo $latitude.",".$longitude ?>);
	
	var map;
	
	var geocoder;
	
	function initialize() {
	
	var myOptions = {
	
	zoom: 12,
	
	center: myLatlng,
	
	mapTypeControl: false, mapTypeId: google.maps.MapTypeId.ROADMAP };
	
	map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	
	geocoder = new google.maps.Geocoder();
	
	};
	
	window.onload = function(){
	
	initialize();
	
	};

</script>
</head>

<?php 
	echo "<table border=1>";
		echo "<tr>";
			echo "<td width=120>";
				echo "编号:";
			echo "<td/>";
			echo "<td>";
				echo $shop_id;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "名称:";
			echo "<td/>";
			echo "<td>";
				echo $name;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "标题:";
			echo "<td/>";
			echo "<td>";
				echo $title;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "地址:";
			echo "<td/>";
			echo "<td>";
				echo $address;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "区域:";
			echo "<td/>";
			echo "<td>";
				echo $area;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "电话:";
			echo "<td/>";
			echo "<td>";
				echo $telephone;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "邮件:";
			echo "<td/>";
			echo "<td>";
				echo $email;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "创建时间:";
			echo "<td/>";
			echo "<td>";
				echo date("y-m-d h:i:s",$createtime);
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "最后修改时间:";
			echo "<td/>";
			echo "<td>";
				echo date("y-m-d h:i:s",$createtime);
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "描述:";
			echo "<td/>";
			echo "<td>";
				echo $description;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "详情:";
			echo "<td/>";
			echo "<td>";
				echo $details;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "收藏次数:";
			echo "<td/>";
			echo "<td>";
				echo $favorite_count;
			echo "<td/>";
		echo "<tr/>";
		echo "<tr>";
			echo "<td>";
				echo "点击次数:";
			echo "<td/>";
			echo "<td>";
				echo $tap_count;
			echo "<td/>";
		echo "<tr/>";
		
		echo "<tr>";
			echo "<td>";
				echo "地图:";
			echo "<td/>";
			echo "<td>";
				echo "<div id='map_canvas' style='width:400px;height:300px;'></div>";
			echo "<td/>";
		echo "<tr/>";

	echo "<table/>";
	
	echo "<br/>";
	echo "<br/><hr>";
	echo "<a href='viewComments.php?shopid=".$shop_id."'>查看评论</a><hr>";
	echo "<a href='viewImages.php?shopid=".$shop_id."'>查看图片</a>";
?>


</html>

